<template>
	<view class="box">
		<view class="header">
			<view class="iconfont icon-fanhui" @click="fanhui(userInfo)">返回</view>
			<view class="">查看消息提醒</view>
			<view class=""> </view>
		</view>
		<view class="xiaoxi" >
			<text>{{userInfo.xjs_neirong}}</text>
		 	<view class="shijian">
				<view class="">{{userInfo.xjs_time}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	
	import {
		ref,
		computed,
		reactive,
		toRefs,
		onMounted
	} from 'vue'
	import {mapState} from 'vuex'
       import http from '../../../utils/http.js'
	export default {
		setup() {
			let data = reactive({
				id:'',
			fanhui:function(userInfo){
				console.log( userInfo.xjs_id   )
				http({
					url: "/miniwatermeter/updatexiaoxi",
					method: "post",
						data:{
						id:userInfo.xjs_id  
						}			
				}).then((res) => {
				if( res.data.code==200 ){
					uni.navigateTo({
						url: '../xiaoxitixing/xiaoxitixing'
					})
				}
 })
				
				
			
				
				
			},
			
			});
			
			
			return {
				...toRefs(data)
			};
			
			
		},
		computed: mapState('chaobiao', ['userInfo']),	
		onLoad() {	

			
			},
		
	}
</script>

<style lang="scss">
	@import url("~@/static/xzafont/font/iconfont.css");

	.header .icon-fanhui {
		font-size: 35rpx;
	}

	.box {
		font-size: 35rpx;
	}

	.header {
		display: flex;
		justify-content: space-between;
		/* background-color: #FFFFFF; */
		line-height: 90rpx;
		margin: 0 30rpx;
		border-bottom: 1rpx solid #F8F8F8;
	}

	.xiaoxi {
		/* display: flex;
		flex-wrap: wrap;
		align-items: center; */
		height: 100rpx;
		border-top: 1rpx solid #E4E4E4;
		padding-top: 50rpx;
		padding-left: 30rpx;
	}

	.shijian {
		display: flex;
		flex-wrap: nowrap;
		justify-content: flex-end;
		margin-top: 80rpx;
		margin-right: 30rpx;
	}

	.B {
		padding-left: 20rpx;
	}
</style>
